<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shopping Cart - Wholesale Electronics from</title>
<link href="../Public/css/cartjp_1.css" rel="stylesheet" type="text/css" />
<load href="./Public/Js/jquery.min.js"/>
</head>

<body>
<div id="top">
    <div class="tlogo"><a href="http://wwww.{$domain}" ><img src="http://www.{$domain}/images/logo.gif"  /></a></div>
    <div class="trg"><img src="../Public/images/top.gif" /></div>
    <ul class="toplb">
      <li><img src="../Public/images/shopping_07.gif" /></li>
      <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
      <li><img src="../Public/images/shopping_09.gif" /></li>
      <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
      <li><img src="../Public/images/shopping_11.gif" /></li>
      <li class="lba"><img src="../Public/images/shopping_16.gif" /></li>
      <li><img src="../Public/images/shopping_13.gif" /></li>
    </ul>
    <div class="clear"></div>
  </div>
</div>

<div id="content">
<form method="post" action="" name="form1" id="form1"> 
  <div id="shlf_column">
<div class="shlf_sidebar">
           <p><img src="../Public/images/shopping_23.gif"  /><span class="STYLE1">製品情報</span></p></div>
   
    <div id="listbar">
    <table class="barnav" cellpadding="1">
    <tr><td class="bga1">商品コード ID</td>
    <td class="bga2">商品コード</td>
    <td class="bga3">数量</td>
    <td class="bga3">価格</td>
    <td class="bga5"></td></tr></table>
    <volist name="a" id="cart">
    
         <table class="prin">
         <tr><td class="bga1">{$cart.productcode}</td><td  class="bga2">{$cart.pbody}</td>
         
         <td class="bga3">
         <input type="hidden" name="domain" id="domain" value="{@a.domain}" />
		<input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
         <input  class="num" id="num{$cart.productcode}" name="n_{$cart.productcode}"  type="text" size="4" value="{$cart.num}" onChange="ChangeTotal(this);" maxlength="5" />
           <input class="cen" type="image" name="submit" src="../Public/images/shrg_03.gif" /> </td>
         <td class="bga3">{$currency}{$cart.n_price|number_format=###,0}</td>
         <td class="bga5"><a href="?a=delid&pidmo={$cart.productcode}&domain={@a.domain}&currency_code={$currency_code}"><img src="../Public/images/shrg_05.gif"  /></a></td></tr>
   </table>
   </volist>
         </div>
        
        
                <div class="option">
            <label><span class="STYLE1">輸送のモード ：</span></label>
                 <select id="ListBoxShipping" size="4" onchange="shipping(this.value)">
				<option selected="selected" value="普通郵便配送 3~5 営業日,{@a.logisticsprice1}">普通郵便配送({$currency}{@a.logisticsprice1})</option>
				<option value="UPS/EMS Express,{@a.logisticsprice2}">急送便({$currency}{@a.logisticsprice2})</option>
				</select>
    </div>
        
        
        
         <div class="prtl">
         <ul class="prtlf"><li>送料  ：</li><li>商品  ：</li></ul>
         <ul class="prtlr STYLE4"><li><strong><span id="LiteralGrandTotal"><span id="LiteralShippingSubtotal">{$currency} {$a_prices-$a_price|number_format=###,0}</span></span></strong></li>
           <li><strong><span id="LiteralProductSubtotal">{$currency} {$a_price|number_format=###,0}</span></strong></li></ul>
           <ul class="prtll"><li class="tla STYLE1">合計金額（税込）  ：</li><li class="tlb STYLE4"><strong><span  id="total_js">{$a_prices|number_format=###,0}</span></strong></li></ul>
         </div>
         <span class="confr_pic"><a href="http://www.{$domain}"><img src="../Public/images/continue_jp2.gif" /></a></span> 
     </div>
     <input type="hidden" name="mo_b" id="mo_b" value="{$a_price|number_format=###,0}" />
	 <input type="hidden" name="mo_bb" id="mo_bb" value="{$a_price|number_format=###,0}" />
     <input type="hidden" name="proallnum" id="proallnum" value="{$proallnum}" />
 <script type="text/javascript">

 function ChangeTotal(num)
 {	var a=parseInt($(num).val());
 	if(!isNaN(a))
 	{
 		if(a<1)
 		{
 			$(num).val(1);
 		}else
 		{
 			$(num).val(a);
 		}
 	}else{
 		$(num).val(1);
 	}
 	$("#form1").submit(); 
 }

 function shipping(val){
 str=val.split(",");
 $('#transportation').val(str[0]);
 $('#logisticsprice').val(str[1]);
 shipping2=parseFloat(str[1])*$('#proallnum').val();
 $('#LiteralShippingSubtotal').html('{$currency} '+shipping2.toFixed(0));
 mo_bb=$('#mo_bb').val();
 reg=/,/gi;
 mo_bb=mo_bb.replace(reg,'');
 str[1]=parseFloat(mo_bb)+parseFloat(str[1])*$('#proallnum').val();
 str[1]=str[1].toFixed(0);
 str[1]=CommaFormatted(str[1]);
 //$('#LiteralProductSubtotal').html('{$currency} '+str[1]);
 $('#mo_b').val(str[1]);
 $('#total_js').html($('#mo_b').val());
 }

 function CommaFormatted(amount) {
     var delimiter = ",";
     amount = new String(amount);
     var a = amount.split('.',2)
     var d = a[1];
     var i = parseInt(a[0]);

     if(isNaN(i)) { return ''; }
     var minus = '';
     if(i < 0) { minus = '-'; }
     i = Math.abs(i);
     var n = new String(i);
     var a = [];
     
     while(n.length > 3)
     {
         var nn = n.substr(n.length-3);
         a.unshift(nn);
         n = n.substr(0,n.length-3);
     }
     if(n.length > 0) { a.unshift(n); }
     n = a.join(delimiter);
     //if(d.length < 1) { amount = n; }
     //else { amount = n + '.' + d; }
     amount = n;
     amount = minus + amount;
     return amount;
 }



</script>
    </form>  
  <form method="post" action="?m=Index&a=sendorder" id="form11" onsubmit="return userinfo()">
     <div id="shrg_colum">
         <div class="shrg_sidebar">
           <p><img src="../Public/images/shopping_23.gif"  /><span class="STYLE1">注文情報、配達先住所
</span></p></div>
       <table cellspacing="5" class="tabular">
           <tr>
             <td class="tba">法人名・団体名  ：</td>
             <td><input type="text" name="client_companyship" maxlength="255" size="30" /> </td>
           </tr>
           <tr>
             <td class="tba">法人名・団体名(かな)  ：</td>
             <td><input type="text" name="client_companyship2" maxlength="255" /></td>
           </tr>
           <tr>
             <td class="tba">部署名  ：</td>
             <td><input type="text" name="DIVISION" maxlength="255" /></td>
           </tr>
           <tr>
             <td class="tba"> <span class="STYLE4">*</span>お名前  ：</td>
             <td>姓：<input type="text" name="first_name" id="yjfirst_name" maxlength="128" size="12" /><span id="first_nameshow"></span>
                          　名：
                          <input type="text" name="last_name" id="yjlast_name" maxlength="128" size="12" /> 
                              <span id="last_nameshow"></span></td>
           </tr>
           <tr>
             <td class="tba"><span class="STYLE4">*</span>郵便番号  ：</td>
             <td>〒<input type="text"  size="3" name="zip" id="yjzip"/> -
                   <input type="text"  size="4" name="zip2" id="yjzip2"/><font color=#ff0000><span id="zipshow"></span></font></td>
           </tr>
             <tr>
             <td class="tba"><span class="STYLE4">*</span> 都道府県  ：</td>
             <td><select id="state" name="state">
<option value=""></option>
<option value="北海道">北海道</option>
<option value="青森県">青森県</option>
<option value="岩手県">岩手県</option>
<option value="宮城県">宮城県</option>
<option value="秋田県">秋田県</option>
<option value="山形県">山形県</option>
<option value="福島県">福島県</option>
<option value="茨城県">茨城県</option>
<option value="栃木県">栃木県</option>
<option value="群馬県">群馬県</option>
<option value="埼玉県">埼玉県</option>
<option value="千葉県">千葉県</option>
<option value="東京都">東京都</option>
<option value="神奈川県">神奈川県</option>
<option value="新潟県">新潟県</option>
<option value="富山県">富山県 </option>
<option value="石川県">石川県</option>
<option value="福井県">福井県 </option>
<option value="山梨県">山梨県 </option>
<option value="長野県">長野県</option>
<option value="岐阜県">岐阜県</option>
<option value="静岡県">静岡県</option>
<option value="愛知県">愛知県</option>
<option value="三重県">三重県</option>
<option value="滋賀県">滋賀県</option>
<option value="京都府">京都府</option>
<option value="大阪府">大阪府</option>
<option value="兵庫県">兵庫県</option>
<option value="奈良県">奈良県</option>
<option value="和歌山県">和歌山県</option>
<option value="鳥取県">鳥取県</option>
<option value="島根県">島根県</option>
<option value="岡山県">岡山県</option>
<option value="広島県">広島県</option>
<option value="山口県">山口県</option>
<option value="徳島県">徳島県</option>
<option value="香川県">香川県</option>
<option value="愛媛県">愛媛県</option>
<option value="高知県">高知県</option>
<option value="福岡県">福岡県</option>
<option value="佐賀県">佐賀県</option>
<option value="長崎県">長崎県</option>
<option value="熊本県">熊本県</option>
<option value="大分県">大分県</option>
<option value="宮崎県">宮崎県</option>
<option value="鹿児島県">鹿児島県</option>
<option value="沖縄県">沖縄県</option>
</select><font color=#ff0000><span id="cityshow"></span></font></td>
           </tr>
           <tr>
             <td class="tba"><span class="STYLE4">*</span> 市区町村  ：</td>
             <td><input type="text" name="city" id="yjcity"/><font color=#ff0000><span id="cityshow"></span></font></td>
           </tr>
            <tr>
             <td class="tba"><span class="STYLE4">*</span>  番地  ：</td>
             <td><input type="text" name="address1" id="yjaddress1" size="40" /><font color=#ff0000><span id="cityshow"></span></font></td>
           </tr>
            <tr>
             <td class="tba">建物名・階・部屋番号(オプション)  ：</td>
             <td><input type="text" name="address2" maxlength="255" /><font color=#ff0000><span id="cityshow"></span></font></td>
           </tr>
          
           <tr>
             <td class="tba">お電話番号  ：</td>
             <td><input size=5 type="text" name="night_phone_a" id="yjnight_phone_a"/>
                             <input size=6 type="text" name="night_phone_b" id="yjnight_phone_b"/> 
                             <input size=6 type="text" name="night_phone_c" id="yjnight_phone_c"/>&nbsp;&nbsp;
                             <font color=#ff0000>
                             <span id="night_phone_ashow"></span>
                             <span id="night_phone_bshow"></span>
                             <span id="night_phone_cshow"></span>
                            
			    </font>
			</td>
           </tr>
           <tr>
             <td class="tba"><span class="STYLE4">*</span>メールアドレス  ：</td>
             <td><input type="text" name="email" id="yzemail" maxlength="128" /><font color=#ff0000><span id="emailshow"></span></font></td>
           </tr>
           <tr>
             <td class="tba">あなたのメッセージ  ：</td>
             <td><textarea rows=5 cols=35 name=client_remark class="abc"></textarea></td>
           </tr>
       </table>
       
       <div class="nextft_pic">
      		 <input type="hidden" name="country" id="recountry" value="" />
			<input type="hidden" name="tracking" id="tracking" value="1" />
			<input type="hidden" name="destination" id="destination" value="Afghanistan" />
			<input type="hidden" name="transportation" id="transportation" value="Air Mail" />
			<input type="hidden" name="logisticsprice" id="logisticsprice" value="{@a.logisticsprice1}" />
			<input type="hidden" name="domain" id="domain" value="{@a.domain}" />
			<input type="hidden" name="currency_code" id="currency_code" value="{$currency_code}" />
         <input type="image" src="../Public/images/next_jp2.gif" />
       </div>
     
     </div>
</form>  

     <div class="clear"></div>
</div>


<div class="foot">
   <div class="footer">
   <img src="../Public/images/shopping_39.gif" />
   <img src="../Public/images/shopping_41.gif"  />
   <img src="../Public/images/shopping_43.gif"  />
    <p>当サイトはSSL暗号化通信に対応しております。ご注文内容やクレジットカード番号など、お客様の大切な情報は暗号化して送信されます。第三者から解読できないようになっておりますので、安心してお買い物をお楽しみください。</p>
   </div>
</div>

 <script type="text/javascript"><!--
 function showBilling(){
	    var bln_check = $('#isSame').attr('checked');
	    if(bln_check){
	        $('#div2').show();
	    }else{     
	        $('#div2').hide();   
	    }
	}

 function updatecountry(){
	 	
		document.getElementById('recountry').value=document.getElementById("country").value;
	}


 
	
--></script>
</body>
</html>
